package com.qf.entity;



import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘亚康
 * @since 2020-03-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("shop_order")
@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "order_id")
    private String orderId;

    @ApiModelProperty(value = "订单总价")
    private BigDecimal orderSum;

    @ApiModelProperty(value = "订单时间")
    @TableField(fill = FieldFill.INSERT)
    private Date orderTime;

    @ApiModelProperty(value = "订单状态，0：未支付，1:支付成功，暂无发货，2：已发货，3：订单完成")
    private Integer orderState;

    @ApiModelProperty(value = "下单用户id")
    private Integer userId;

    @ApiModelProperty(value = "收货地址id")
    private Integer addressId;

    @ApiModelProperty(value = "伪删除，0：正常，1：删除")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer orderIsDelete;

    @ApiModelProperty(value = "收货人")
    private String consignee;


}
